import request from './request'

// 获取课程购买列表
export const getCourseShop = () => {
  return request({
    url: '/course/getShop',
    method: 'GET'
  })
}

// 购买课程
export const purchaseCourse = (data) => {
  return request({
    url: '/course/shop',
    method: 'POST',
    data
  })
}
